package com.tboss.template.common.dto;

public class PagingDto {

	private String pagingYn = "Y";
	private Integer currentPage = 1;
	private Integer rowPerPage = 15;
	private Integer offSet;
	private Integer lastIndex;
	
	public String getPagingYn(){ return this.pagingYn; }
	public void setPagingYn(String pagingYn){ this.pagingYn = pagingYn; }
	
	public Integer getCurrentPage(){ return this.currentPage; }
	public void setCurrentPage(Integer currentPage){ this.currentPage = currentPage; }
	
	public Integer getRowPerPage(){ return this.rowPerPage; }
	public void setRowPerPage(Integer rowPerPage){ this.rowPerPage = rowPerPage; }
	
	public Integer getOffSet(){
		this.offSet = ((this.currentPage - 1) * this.rowPerPage);
		
		return this.offSet;
	}
	public void setOffSet(Integer offSet){ this.offSet = offSet; }
	
	public Integer getLastIndex(){
		this.lastIndex = (this.currentPage * this.rowPerPage);
		
		return this.lastIndex; 
	}
	public void setLastIndex(Integer lastIndex){ this.lastIndex = lastIndex; }
	
}
